package com.dqx.opengl_es_demo.filter;

/**
 * 要处理的类型枚举
 */
public enum Filter {

    NONE(0, new float[]{0.0f, 0.0f, 0.0f}),//原图
    GRAY(1, new float[]{0.299f, 0.587f, 0.114f}),//黑白
    COOL(2, new float[]{0.0f, 0.0f, 0.1f}),//冷色调
    WARM(2, new float[]{0.1f, 0.1f, 0.0f}),//暖色调
    BLUR(3, new float[]{0.006f, 0.004f, 0.002f}),//模糊
    MAGN(4, new float[]{0.0f, 0.0f, 0.4f});//放大镜

    private int vChangeType;

    private float[] data;

    Filter(int vChangeType, float[] data) {
        this.vChangeType = vChangeType;
        this.data = data;
    }

    public int getType() {
        return vChangeType;
    }

    public float[] data() {
        return data;
    }
}
